/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights reserved.
 * <a>http://www.cqcis.com</a>
 */
package com.firebird.fb.action.interceptor;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsStatics;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * @author qiuxj create 2009-6-10
 *
 */
public class FbCmsActionInterceptor extends AbstractInterceptor implements StrutsStatics {

	private static final long serialVersionUID = 7775715929257211878L;
	private final Log logger = LogFactory.getLog(this.getClass());

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		final Object action = invocation.getAction();
		
		logger.info("Action Interceptor Is Ok!!!" + ",\nThis Action is:" + action + ",\nschema is:" + ServletActionContext.getRequest().getScheme());
		
		return invocation.invoke();
	}

}
